import java.util.Comparator;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Date: 2024-01-22
 * Time:13:53
 */
public class GradeComparator implements Comparator<Student> {


    @Override
    public int compare(Student o1, Student o2) {
        return o1.getGrade()- o2.getGrade();
    }
}
